#include"List.h"
void test01()
{
	struct ListNode* head = NULL;
	ListInit1(&head);
	ListPushFront(head, 1);
	ListPushFront(head, 2);
	ListPushFront(head, 3);
	ListPushFront(head, 4);
	ListPushFront(head, 5);
	/*ListPushFront(head, 1);
	ListPushFront(head, 2);
	ListPushFront(head, 3);
	ListPushFront(head, 4);
	ListPushFront(head, 5);
	ListPushFront(head, 1);
	ListPushFront(head, 2);
	ListPushFront(head, 3);
	ListPushFront(head, 4);
	ListPushFront(head, 5);*/
	/*ListPopFront(head);
	ListPopFront(head);
	ListPopFront(head);
	ListPopFront(head);
	ListPopFront(head);
	ListPopFront(head);*/
	ListPushBack(head, 10);
	ListPushBack(head, 100);
	ListPushBack(head, 1000);
	ListPushBack(head, 10000);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPrint(head);

}
void test02()
{
	struct ListNode* head = NULL;
	head = ListInit2();
	ListPushBack(head, 1);
	ListPushBack(head, 2);
	ListPushBack(head, 3);
	ListPushBack(head, 4);
	struct ListNode* pos = ListFind(head, 5);
	//Insert(pos, 100);
	Erase(pos);
	ListPrint(head);
}

int main()
{
	//test01();
	test02();
	return 0;
}